<script language="javascript">
   
   
    $(document).ready(function() {
	
    //Moi khoi dong
    	$.ajax({  
                type: "POST", 
				url: 'home/load_product_category/laptop_product/all_product', 
                complete: function(data){  
				        $('#content').html(data.responseText);
                                        
                       <?php if(isset($this->session->userdata['items'])){
                       foreach($temp as $idt){ ?>
                                    $('.comparelink<?php echo $idt;?>').removeAttr("onclick");
                                    $('#compare<?php echo $idt;?>').addClass("disable");
                       <?php } }?> 
                }   
        });
        
        //tab ngang
        
             // put all your jQuery goodness in here.
    $(".tabs li:first").attr("id","current"); // Activate first tab
    $('.tabs li').click(function(e) {
		e.preventDefault();
		$(".tabs li").attr("id",""); //Reset id's
		$(this).attr("id","current"); // Activate this
		var tabngang = $(this).attr('class');
        var tabdung = $('.htab #current').attr('class');
		$.ajax({  
                type: "POST", 
				url: 'home/load_product_category/'+tabdung+'/'+tabngang, 
                complete: function(data){  
				$('#content').html(data.responseText);
                }  
            });  

    });
    
    //tabdung
     $(".htab li:first").attr("id","current"); // Activate first tab
     $('.htab li').click(function(e) {
		e.preventDefault();
		$(".htab li").attr("id",""); //Reset id's
		$(this).attr("id","current"); // Activate this
		var tabdung = $(this).attr('class');
        var tabngang = $('.tabs #current').attr('class');
		$.ajax({  
                type: "POST", 
				url: 'home/load_product_category/'+tabdung+'/'+tabngang, 
                complete: function(data){  
				$('#content').html(data.responseText);
                
                }  
            });
             

    });
        //biet binh
	//	$(".iframe").colorbox({iframe:true, width:"80%", height:"90%", bottom:"0px",fixed:true});
    
    });//document ready
</script>
<div>
<div class="header_title">DANH MỤC SẢN PHẨM</div>
<ul class="tabs loaitab">
    <li class="all_product">Tất cả</li>
    <li class="hot_product">Sản phẩm hot</li>
    <li class="premium_product">Sản phẩm cao cấp</li>
</ul>
</div>
<div >
<!--ul id="nhasanxuat">
    <li class="current sony">&nbsp;</li>
    <li class="dell"></li>
    <li class="hp"></li>
    <li  class="apple"></li>
</ul-->

</div>
<ul class="htab">
 <li class="laptop_product"></li>
 <li class="tablet_product"></li>
 <li class="iphone_product"></li>
</ul>